import audioManager from "./AudioManager";
import toastManager from "./ToastManager";

const {ccclass, property} = cc._decorator;

@ccclass
export default class SendCode extends cc.Component {


    @property(cc.EditBox)
    mobileInput: cc.EditBox

    @property(cc.Node,)
    sendBtn: cc.Node;

    protected audioManager

    protected toastManager

    start() {
        this.audioManager = audioManager
        this.toastManager = toastManager
        this.sendBtn.on(cc.Node.EventType.TOUCH_START, this.onSendCode, this)
    }

    onSendCode(isClose = true) {
        this.audioManager.playBtnClickAudio()
        this.toastManager.show('发送验证码成功')
    }
}
